let printIncome = require('../Component/printIncome');

describe('printIncome()', () => {

    it('printUserIncome', () => {
        let customerList = {
            "A": {
                "2017-08-01": {
                    "today": "workday",
                    "usedTime": ["18:00~20:00"],
                    "cancelled": ["19:00~22:00"],
                    "U003": ["18:00~20:00"]
                }
            }
        };
        let actual = printIncome.printIncome(customerList);
        let result =`收入汇总
---
场地：A
2017-08-01 19:00~22:00 违约金 100元
2017-08-01 18:00~20:00 160元
小计：260元
---
总计 260元`;
        expect(actual).toBe(result);
    });

});